using System;

namespace GGameFramework.Core.Pool
{
    /// <summary>
    /// 固定大小引用类型对象池
    /// </summary>
    public class FixedReferencePool<T> : ReferenceObjectPool<T> where T : IReference//ReferencePoolable
    {
        public FixedReferencePool(
            Func<T> createFunc,
            Action<T> onSpawn = null,
            Action<T> onRecycle = null,
            Action<T> onDestroy = null,
            int capacity = 10) 
            : base(createFunc, onSpawn, onRecycle, onDestroy, new FixedSizePoolingStrategy(), capacity)
        {
        }
    }
}